package com.rm.zeyou.mapper;

import com.rm.zeyou.entity.SalesmanConsumeDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 * 业务员佣金记录表 Mapper 接口
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 15:55:08
 */
@Mapper
public interface SalesmanConsumeDetailMapper extends BaseMapper<SalesmanConsumeDetail> {

    BigDecimal selectAddAmount(@Param("salesmanId") Long salesmanId);

    BigDecimal selectPayoutAmount(@Param("salesmanId") Long salesmanId);

    BigDecimal selectOrderAmount(@Param("salesmanId") Long salesmanId);
}
